package com.shangxian.giveithome.entity.petCard;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author coderFu
 * @create 2021/5/2
 */
@Data
@ApiModel("宠牌二维码")
public class PetCardQrCode {

    @ApiModelProperty("自增id")
    private Long id;

    @ApiModelProperty("宠牌编号")
    private String petCardNo;

    @ApiModelProperty("二维码内容")
    private String content;

    @ApiModelProperty("状态0未绑定， 1已绑定， 2绑定不可见")
    private Integer state;

    @ApiModelProperty("宠牌id")
    private Long petCardId;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date updateTime;

    @ApiModelProperty("二维码路径")
    private String path;


}
